//
//  UIView+CNAddNewAddressViewCategory.m
//  BeeQuick_19
//
//  Created by 赵玉忠 on 16/9/24.
//  Copyright © 2016年 CN Team. All rights reserved.
//

#import "UIView+CNAddNewAddressViewCategory.h"

@implementation UIView (CNAddNewAddressViewCategory)
+(UIView *)basicViewWithTitle:(NSString *)title{
    UIView *view = [UIView new];
    UILabel *label = [UILabel new];
    label.text = title;
    label.textColor = [UIColor blackColor];
    //    label.tintColor = [UIColor blackColor];
    [view addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(view).offset(5);
        make.centerY.equalTo(view);
        make.width.offset(70);
    }];
    UIView *lineView = [UIView new];
    lineView.backgroundColor = [UIColor colorWithRed:220/255.0 green:220/255.0 blue:220/255.0 alpha:1];
    [view addSubview:lineView];
    [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(view);
        make.height.offset(1);
    }];
    
    return view;
}
@end
